package juc;

public class DanList2
{
    private Node first = null;//这是指向链表头的指针，下面还有用
    public void createCircleNodes(int n)
    {
        Node temp = null;
        for (int i = 1; i <= n; i++)
        {
            Node node = new Node(i);
            if (i == 1)
            {
                first = node;
                first.setNext(first);
                temp = first;
            }
        }
    }
}
